package com.github.horse.gateway.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

// 需要记得加上RefreshScope注解
@RefreshScope
@Configuration
public class DynamicConfig {

    @Value("${module.name}")
    private String MODULE_NAME;

    @Value("${my.gateway}")
    private String myGateway;

    public String getModuleName() {
        return this.MODULE_NAME;
    }

    public String getMyGateway(){
        return this.myGateway;
    }
}
